<?php /*a:1:{s:96:"E:\website\phpstudy_pro\WWW\think\tpadmin\tp51Admin\application\admin\view\access_log\index.html";i:1600351369;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/static/lib/html5shiv.js"></script>
    <script type="text/javascript" src="/static/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>操作日志</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 主面板 <span class="c-gray en">&gt;</span> 后台用户 <span class="c-gray en">&gt;</span> 操作日志 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-l">
        <form action="" method="get">
            <input type="text" class="input-text" style="width:180px" placeholder="开始日期" value="<?php echo htmlentities(app('request')->param('startDate')); ?>" id="startDate"  name="startDate">
            -
            <input type="text" class="input-text" style="width:180px" placeholder="结束日期" id="endDate" value="<?php echo htmlentities(app('request')->param('endDate')); ?>" name="endDate">
            <button type="submit" class="btn btn-success" name=""><i class="Hui-iconfont">&#xe665;</i> 查询</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l"></span>
        <span class="r">共有数据：<strong><?php echo htmlentities($total); ?></strong> 条</span>
    </div>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr class="text-c">
            <th width="10">ID</th>
            <th width="30">账号</th>
            <th width="30">角色</th>
            <th width="100">请求uri</th>
            <th width="10">请求方式</th>
            <th width="30">创建时间</th>
        </tr>
        </thead>
        <tbody>

        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
        <tr class="text-c">
            <td><a href="javascript:logDetail(<?php echo htmlentities($item['id']); ?>);"><?php echo htmlentities($item['id']); ?></a></td>
            <td><?php echo htmlentities($item['username']); ?></td>
            <td><?php echo htmlentities($item['role_name']); ?></td>
            <td><?php echo htmlentities($item['uri']); ?></td>
            <td><?php echo htmlentities($item['method']); ?></td>
            <td><?php echo date('Y/m/d H:i:s',$item['create_time']); ?></td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>

        </tbody>
    </table>

    <div class="cl pd-5 mt-20">
        <div class="l"></div>
        <div class="r">
            <?php echo $list; ?>
        </div>
    </div>


</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/static/lib/jedate/6.5.0/src/jedate.js"></script>
<link rel="stylesheet" href="/static/lib/jedate/6.5.0/skin/jedate.css">

<script type="text/javascript">
    $(function () {
        jeDate("#startDate",{
            onClose:false,
            format:"YYYY-MM-DD",
            isTime:false,
            minDate:"1900-01-01"
        });
        jeDate("#endDate",{
            onClose:false,
            format:"YYYY-MM-DD",
            isTime:false,
            minDate:$('#startDate').val() + ' 00:00:00',
        });
    });

    // 查看日志详情
    function logDetail(id) {

        var  title ='查看操作日志';
        var url = '/admin/access_log/show?id='+id;
        var width = 1000;
        var height = 600;

        layer_show(title,url,width,height);
    }
</script>

</body>
</html>